package com.controller
{
	import com.model.UserProxy;
	import com.view.components.map.MapMediator;
	import com.view.components.menu.MenuMediator;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand implements ICommand
	{
		override public function execute(notification:INotification):void
		{
		    facade.registerProxy(new UserProxy());
		    
		    var app:mygame = notification.getBody() as mygame;
		   /*  facade.registerMediator(new UserFormMediator(app.userForm));
		    facade.registerMediator(new UserListMediator(app.userList)); */
		    facade.registerMediator(new MapMediator(app.mapUI));
		    facade.registerMediator(new MenuMediator(app.menuUI));
		}
	}
}